Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: features = ["mysql"] not working (#82) #83

Closed
wants to merge 1 commit into from

Conversation

HGZ-20
Copy link
Contributor

@HGZ-20 HGZ-20 commented Nov 26, 2023

fix: features = ["mysql"] not working (#82)

The problem with issue #82 is that when the "mysql" feature is enabled, the default feature is not disabled, resulting in both the "mysql" and "postgres" features being present, causing the code to throw an error of multiple variable definitions. After this modification is applied, when enabling the "mysql" feature, it is necessary to disable the default feature.

When using the "mysql" feature, add the following code to Cargo.toml.

sqlx-adapter = {version = "***", default-features = false, features = ["mysql"]}
tokio = { version = "1.1.1", features = ["macros"] }

@CLAassistant
Copy link

CLAassistant commented Nov 26, 2023

CLA assistant check
All committers have signed the CLA.

@hsluoyz
Copy link
Member

hsluoyz commented Nov 27, 2023

@HGZ-20 plz fix CI:

image

@HGZ-20 HGZ-20 closed this Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants